home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / sysdeps / generic / sigaction.h < prev    next >
C/C++ Source or Header  |  1992-11-16  |  2KB  |  51 lines

  1. /* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3.  
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8.  
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. Library General Public License for more details.
  13.  
  14. You should have received a copy of the GNU Library General Public
  15. License along with the GNU C Library; see the file COPYING.LIB.  If
  16. not, write to the, 1992 Free Software Foundation, Inc., 675 Mass Ave,
  17. Cambridge, MA 02139, USA.  */
  18.  
  19. /* These definitions match those used by the 4.4 BSD kernel.
  20.    If the operating system has a `sigaction' system call that correctly
  21.    implements the POSIX.1 behavior, there should be a system-dependent
  22.    version of this file that defines `struct sigaction' and the `SA_*'
  23.    constants appropriately.  */
  24.  
  25. /* Structure describing the action to be taken when a signal arrives.  */
  26. struct sigaction
  27.   {
  28.     /* Signal handler.  */
  29.     __sighandler_t sa_handler;
  30.  
  31.     /* Additional set of signals to be blocked.  */
  32.     __sigset_t sa_mask;
  33.  
  34.     /* Special flags.  */
  35.     int sa_flags;
  36.   };
  37.  
  38. /* Bits in `sa_flags'.  */
  39. #ifdef    __USE_BSD
  40. #define    SA_ONSTACK    0x1    /* Take signal on signal stack.  */
  41. #define    SA_RESTART    0x2    /* Don't restart syscall on signal return.  */
  42. #define    SA_DISABLE    0x4    /* Disable alternate signal stack.  */
  43. #endif
  44. #define    SA_NOCLDSTOP    0x8    /* Don't send SIGCHLD when children stop.  */
  45.  
  46.  
  47. /* Values for the HOW argument to `sigprocmask'.  */
  48. #define    SIG_BLOCK    1    /* Block signals.  */
  49. #define    SIG_UNBLOCK    2    /* Unblock signals.  */
  50. #define    SIG_SETMASK    3    /* Set the set of blocked signals.  */
  51.